using Engine;
using Engine.Graphics;
using Game;

namespace SCIENEW {
    public class FanItem : FlatItem, IMaterialBlock {

        public Materials Material;
        public Materials GetMaterial() => Material;
        public FanItem(Materials type) : base(type + "Fan") {
            Material = type;
            DisplayName = string.Format(LanguageControl.Get("Items", "Names", "FanItem"), Material.ToDisplayName());
            DefaultTextureSlot = 178;
            var name = type.ToDisplayName();
            Description = string.Format(LanguageControl.Get("Items", "Descriptions", "FanItem"), Material.ToDisplayName());
        }


        public override void DrawBlock(PrimitivesRenderer3D primitivesRenderer, int value, Color color, float size, ref Matrix matrix, DrawBlockEnvironmentData environmentData)
        {
            BlocksManager.DrawFlatBlock(primitivesRenderer, value, size, ref matrix, IndustrialModLoader.IETexture, new Color(155, 155, 155), false, environmentData);
        }
    }
}